package foodmaterial.entity;

import foodmaterial.action.valid.ObjectNullValid;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.io.Serializable;

public class CustomerRecipePriceTemplateDetail implements Serializable {
    private static final long serialVersionUID = 8862529238997052893L;

    private Long id ;
    private Long templateId ;
    private String templateName ;
    @ObjectNullValid(message = "菜谱不能为空")
    private Long recipeId ;
    private String recipeName ;
    @ObjectNullValid(message = "价格不能为空")
    @DecimalMin(value = "0.01",message = "销售价最低为0.01")
    @DecimalMax(value = "200",message = "销售价最高为200")
    private Double price ;
    private Double vipPrice;
    private Long recipeTypeId ;
    private String recipeTypeName ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public Long getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(Long recipeId) {
        this.recipeId = recipeId;
    }

    public String getRecipeName() {
        return recipeName;
    }

    public void setRecipeName(String recipeName) {
        this.recipeName = recipeName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getVipPrice() {
        return vipPrice;
    }

    public void setVipPrice(Double vipPrice) {
        this.vipPrice = vipPrice;
    }

    public Long getRecipeTypeId() {
        return recipeTypeId;
    }

    public void setRecipeTypeId(Long recipeTypeId) {
        this.recipeTypeId = recipeTypeId;
    }

    public String getRecipeTypeName() {
        return recipeTypeName;
    }

    public void setRecipeTypeName(String recipeTypeName) {
        this.recipeTypeName = recipeTypeName;
    }
}
